﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ObservadorPeplau.API.Business;
using ObservadorPeplau.API.DAL;

namespace ObservadorPeplau.API
{
    public static class HomepageManager
    {
        private static readonly HomepageDAO HomepageDAO = new HomepageDAO();

        public static void LoadHomePage()
        {
            HomepageDAO.LoadHomePage();
        }

        public static List<Discussion> GetFeaturedDiscussions(bool forceLoad)
        {
            return HomepageDAO.GetFeaturedDiscussions();
        }

        public static List<Discussion> GetFeaturedDiscussions()
        {
            return HomepageDAO.GetFeaturedDiscussions();
        }

        public static List<Discussion> GetNewDiscussions()
        {
            return HomepageDAO.GetNewDiscussions();
        }
    }
}
